package com.bandit.registry;

import com.bandit.extension.SPI;
import com.bandit.remoting.dto.RpcRequest;

import java.net.InetSocketAddress;

/**
 * 服务发现
 * @author Bandit
 * @create 2022/2/23 16:14
 */
@SPI
public interface ServiceDiscovery {

    /**
     * 发现服务
     * @param rpcRequest
     * @return
     */
    InetSocketAddress lookupService(RpcRequest rpcRequest);
}
